<%-- 
    Document   : blockUser
    Created on : Oct 29, 2009, 2:16:18 AM
    Author     : Phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="DAOClass.Members"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Block User Page</title>
    </head>
    <body>
        <jsp:useBean id="blockUser" class="DAOClass.Members" >

        </jsp:useBean>
       <%
            String userBlock = request.getParameter("u");
            int userStatus = Integer.parseInt(request.getParameter("s"));
            if (blockUser.blockMember(userBlock,userStatus)) {
                response.sendRedirect("../members.jsp");
            }
       %>
    </body>
</html>
